Skip to content

drivers: watchdog: ts_wdt: Make poweroff static - #376

Open
markfeathers wants to merge 1 commit into
linux-6.18.yfrom
linux-6.18.y-ts-wdt-static-poweroff
Open

drivers: watchdog: ts_wdt: Make poweroff static#376
markfeathers wants to merge 1 commit into
linux-6.18.yfrom
linux-6.18.y-ts-wdt-static-poweroff

Conversation

@markfeathers

Copy link
Copy Markdown
Contributor

Summary

  • ts_wdt_poweroff() is only referenced within ts_wdt.c where it is assigned to pm_power_off; mark it static

Testing

Builds warning-free with tsimx28_minimal_defconfig (arm-linux-gnueabihf, gcc 14.2):

Before:
drivers/watchdog/ts_wdt.c:101:6: warning: no previous prototype for 'ts_wdt_poweroff' [-Wmissing-prototypes]

After:
(no warnings)

ts_wdt_poweroff() is only referenced within ts_wdt.c where it is
assigned to pm_power_off, make it static to fix the following warning:

drivers/watchdog/ts_wdt.c:101:6: warning: no previous prototype for 'ts_wdt_poweroff' [-Wmissing-prototypes]

Signed-off-by: Mark Featherston <mark@embeddedts.com>
@markfeathers
markfeathers force-pushed the linux-6.18.y-ts-wdt-static-poweroff branch from 88c7ba7 to 7ab3587 Compare September 2, 2026 22:50
@markfeathers
markfeathers marked this pull request as ready for review September 2, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant